import { Card, Tabs } from "antd";
import { useState } from "react";
import OperlogList from "./operlog";
import JobLogIndex from "../job/logIndex";
import LoginLogIndex from "./loginLogIndex";
const OperlogIndex = () => {
  const [activeKey, setActiveKey] = useState('1')
  const [items] = useState([
    { label: '操作日志', key: '1', children: <OperlogList /> },
    { label: '登录日志', key: '2', children: <LoginLogIndex /> },
    { label: '调试日志', key: '3', children: <JobLogIndex /> }
  ]);

  return (<div className="searchTableWrapper">
    <Tabs activeKey={activeKey} onChange={setActiveKey} items={items}></Tabs>
  </div>);
}

export default OperlogIndex;